﻿function applyTheme(themeName) {
    $.cookie('_tsTheme', themeName);
    window.location =  window.location.href;
}

function showPreview($selectBox) {
    var imgList = $('.themePreview').children();
    imgList.hide();
    
    var selectImg = $('.themePreview').find('[alt=' + $selectBox.val() + ']');
    selectImg.show();
}